import request from '@/utils/request'

// 查询distrack列表
export function listDistrack(query) {
  return request({
    url: '/distrack/distrack/list',
    method: 'get',
    params: query
  })
}

// 查询distrack详细
export function getDistrack(id) {
  return request({
    url: '/distrack/distrack/' + id,
    method: 'get'
  })
}

// 新增distrack
export function addDistrack(data) {
  return request({
    url: '/distrack/distrack',
    method: 'post',
    data: data
  })
}

// 修改distrack
export function updateDistrack(data) {
  return request({
    url: '/distrack/distrack',
    method: 'put',
    data: data
  })
}

// 删除distrack
export function delDistrack(id) {
  return request({
    url: '/distrack/distrack/' + id,
    method: 'delete'
  })
}

export function getProList(row) {
  return request({
    url: '/distrack/distrack/pro-list',
    method: 'get',
    params: row
  })
}

